package com.example.gaode.ext

import com.amap.api.location.AMapLocation
import com.example.amap.location.bean.LocationInfo

fun AMapLocation.toLocationInfo(): LocationInfo {
    return LocationInfo(poiName, address, city, latitude, longitude, bearing)
}